﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Fluq
{
	sealed class TransientLifestyle : IDependencyLifestyle
	{
		public object Acquire(object graphId, IDependencyKey key, Func<object> factory)
		{
			return factory();
		}

		public void Discard(IDependencyKey key, Action<object> disposer, object instance)
		{
			disposer(instance);
		}
	}
}
